{extend name="base" /}
{block name="title"}用户中心{/block}
{block name="head"}
<style>
span.icon{margin-right:5px;display:inline-block;font-size:20px; line-height:100%;vertical-align:text-bottom;}
.weui_media_desc span+span{margin-left:0.72em;}
</style>
{/block}
{block name="body"}
<!-- 头像信息 -->
<div class="weui_panel weui_panel_access">
  <div class="weui_panel_ft" style="padding:0">
    <a class="weui_media_box weui_media_appmsg" href="{:url('myinfo')}">
      <div class="weui_media_hd">
        <img class="weui_media_appmsg_thumb radius" src="<?php echo(empty($Agent['HeadImgUrl'])?'__STATIC__/agent/dface.png':$Agent['HeadImgUrl']); ?>" alt="" />
      </div>
      <div class="weui_media_bd">
        <h4 class="weui_media_title"><?php $a = $Agent['WeiXin']; $a = empty($a) ? $Agent['Compellation'] : $a; echo($a) ?></h4>
        <p class="weui_media_desc"><span>比率: {php}
          $a = $Agent['AgentLevel'] -1;
          $a = $a>=0 ? $a : 0;
          $b = "level".$a;
          $c = $Agent[$b]??0;
          echo($c);
        {/php}%</span><span>房卡: {$RoomCard??0}</span></p>
        <p class="weui_media_desc"><span>佣金: {$Info.Rebate*1}</span><span>业绩: {$Info.RMB*1}</span></p>
      </div>
    </a>
  </div>
</div>
<!-- /头像信息 -->
<!-- 私有菜单 -->
<div class="weui_panel">
  <div class="weui_panel_bd">
    <div class="weui_media_box weui_media_small_appmsg">
      <div class="weui_cells weui_cells_access">
      {volist name="Menu1" id="v"}
        {notin name="key" value="myinfo"}
        <a class="weui_cell" href="{:url($key)}">
          <div class="weui_cell_hd"><span class="icon {$v[0]??''}"></span></div>
          <div class="weui_cell_bd weui_cell_primary"><p>{$v[1]}</p></div>
          <div class="weui_cell_ft"></div>
        </a>
        {/notin}
      {/volist}
      </div>
    </div>
  </div>
</div>
<!-- /私有菜单 -->
<!-- 公有菜单 -->
<div class="weui_panel">
  <div class="weui_panel_bd">
    <div class="weui_media_box weui_media_small_appmsg">
      <div class="weui_cells weui_cells_access">
      {volist name="Menu2" id="v"}
        <a class="weui_cell" href="{:url($key)}">
          <div class="weui_cell_hd"><span class="icon {$v[0]??''}"></span></div>
          <div class="weui_cell_bd weui_cell_primary"><p>{$v[1]}</p></div>
          <div class="weui_cell_ft"></div>
        </a>
      {/volist}
      </div>
    </div>
  </div>
</div>
<!-- /公有菜单 -->
{/block}
{block name="foot"}{/block}